package com.thyme.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author thyme
 * @ClassName News
 * @Description TODO
 * @Date 2020/5/7 14:13
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "news", type = "news",replicas = 0,refreshInterval = "-1")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;


    private String title;

    private String content;


}
